package ems.dev.easycode.domain.entity;


/**
 * @author 狠穿
 * @version 1.0.0
 * @date 2023/5/24
 * @function 表字段的实体类
 */
public class ColumnEntity {
    private String column;
    private String columnType;
    private String length;
    private boolean nullable;
    private String defaultValue;
    private String comment;
    private String javaType;
    private boolean isPk;
    private String fieldName;

    public String getColumn() {
        return column;
    }

    public void setColumn(String column) {
        this.column = column;
    }

    public String getColumnType() {
        return columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }

    public String getLength() {
        return length;
    }

    public void setLength(String length) {
        this.length = length;
    }

    public boolean isNullable() {
        return nullable;
    }

    public void setNullable(boolean nullable) {
        this.nullable = nullable;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getJavaType() {
        return javaType;
    }

    public void setJavaType(String javaType) {
        this.javaType = javaType;
    }

    public boolean getPk() {
        return isPk;
    }

    public void setPk(boolean pk) {
        isPk = pk;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    @Override
    public String toString() {
        return "ColumnEntity{" +
                "column='" + column + '\'' +
                ", columnType='" + columnType + '\'' +
                ", length='" + length + '\'' +
                ", nullable=" + nullable +
                ", defaultValue='" + defaultValue + '\'' +
                ", comment='" + comment + '\'' +
                ", javaType='" + javaType + '\'' +
                ", isPk=" + isPk +
                ", fieldName='" + fieldName + '\'' +
                '}';
    }
}
